package com.lnking.lnkingplace.model.dto.outsiders;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 外来人员登记表
 * </p>
 *
 * @author sn
 * @since 2022-08-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Outsiders对象", description="外来人员登记表")
public class OutsidersDto extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名字")
    private String name;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "是否管控")
    private String control;

    @ApiModelProperty(value = "渠道,因为有多个单位使用，标识属于那个渠道的")
    private String channel;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "风险等级")
    private String level;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "籍贯")
    private String nativePlace;

    @ApiModelProperty(value = "场所Id")
    private String placeId;

    @ApiModelProperty(value = "场所Name")
    private String placeName;

    @ApiModelProperty(value = "街道")
    private String street;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "健康码	行程码	核酸检测报告")
    private String photos;


}
